<template>
    <div>
        <button @click="getTalk">获取土味情话</button>
        <ul>
            <li v-for="item in useTalk.talkList" :key="item.id">
                {{ item.title }}
            </li>
        </ul>
    </div>
</template>

<script lang="ts" setup name="LoveTalk">
import {useTalkStore} from "@/store/loveTalk";

let useTalk = useTalkStore()

async function getTalk() {
    useTalk.getATalk()
}
</script>

<style scoped>

</style>
